home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 July
/
07_02.iso
/
software
/
xq-xsetup
/
files
/
setup.exe
/
{app}
/
plugins
/
XQ Control Panel Hide Pwd.xpl
< prev
next >
Wrap
Text File
|
2000-11-13
|
2KB
|
66 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="6"
"COUNT"="3"
"UIPATH"="Appearance\Control Panel\Other Settings"
"NAME"="Visible pages in "Passwords""
"OSVERSION"="11101"
"LANGUAGE"="VBScript"
"VERSION"="1.03"
"TEXT 1"="Show "Remote administration" tab in Passwords control"
"TEXT 2"="Show "User profiles" page in Passwords control"
"TEXT 3"="Show "Change passwords" page in Passwords control"
"DESCRIPTION 1"="To show a page inside the "Passwords" applet, activate it. To hide it, deactivate it."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
"COMMENT 2"="Thanks to CptSiskoX for his help!"
sPath="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System\"
sV1="NoAdminPage" 'all dword (1 = remove)
sV2="NoProfilePage"
sV3="NoPwdPage"
Sub Plugin_Initialize
i=RegReadValue(sPath & sV1)
if i<>1 then SetUIElement 1,true
i=RegReadValue(sPath & sV2)
if i<>1 then SetUIElement 2,true
i=RegReadValue(sPath & sV3)
if i<>1 then SetUIElement 3,true
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
Call WriteIt(1,sPath,sV1)
Call WriteIt(2,sPath,sV2)
Call WriteIt(3,sPath,sV3)
Call IndicateSettingChange()
End Sub
Sub WriteIt(ITM,PAT,VAL)
b=GetUIElement(ITM)
if b=false then
call RegWriteValue(PAT & VAL,1,2)
else
chk=RegReadValue(PAT & VAL)
if IsEmpty(chk)=false then
Call RegDeleteValue(PAT & VAL)
end if
end if
end sub
Sub Plugin_Terminate
End Sub